#include "MySQLClient.hpp"
#include <cstdlib>
#include <mysql/mysql.h>
int main()
{
    using namespace wd;
    MySQLClient myclient;
    bool ret = myclient.connect("127.0.0.1", 3306, "root", "1234",
                                "wangdao");
    if(!ret) {
        return EXIT_FAILURE;
    }
    printf("11111111111111111\n");
    //string sql1 = "INSERT INTO person VALUES(14, 'beiliya', 40, 60, 60,
//    60)";
    //myclient.writeOperationQuery(sql1);
    string sql2 = "select * from person";
    vector<vector<string>> res = myclient.readOperationQuery(sql2);
    MySQLClient::dump(res);
    return 0;
}
